home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group97b.txt
/
000062_icon-group-sender _Tue Sep 16 07:59:46 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by cheltenham.cs.arizona.edu (8.8.7/8.8.7) with SMTP id HAA07300
for <icon-group-addresses@cheltenham.CS.Arizona.EDU>; Tue, 16 Sep 1997 07:59:46 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA02851; Tue, 16 Sep 1997 07:59:45 -0700
To: icon-group@cs.arizona.edu
Date: Tue, 16 Sep 1997 13:41:08 +1000
From: Stuart.Robinson@anu.edu.au (Stuart Robinson)
Message-Id: <Stuart.Robinson-1609971341100001@asianstmg-221.anu.edu.au>
Organization: ANU
Sender: icon-group-request@cs.arizona.edu
Subject: case selection expression
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
How can I use the case selection expression to 1) check each line of a
text for the presence or absence of a few key words and 2) do something
according to which key word is present? The logic is basically:
do 1 if find "x"
do 2 if find "y"
do 3 if find "z"
do 4 otherwise (as a default)
I think that the case selection expression (i.e., case X of {}) would
work, but I don't really understand it and I don't have my manual handy.
I know that this can be done with if-then (else), but what I want to know
is how "case of {}" works.
Thanks in advance for the help.
Cheers,
Stuart Robinson
--
Stuart Robinson <Stuart.Robinson@no_spam!anu.edu.au>
The Australian National University
*TO REPLY, REMOVE "no_spam!" FROM E-MAIL ADDRESS GIVEN ABOVE